/* eslint-disable no-unused-vars */
let {datas} = require("./data_shema");
module.exports = {
    // eslint-disable-next-line no-unused-vars
    changeFun:function(req,res,err){
        let user = req.body.user;
        let mood = req.body.mood;
        let title = req.body.title;
        console.log(req.body,999);
        datas.updateOne({title,user,mood},{$set:req.body}).then((data)=>{
            res.send(true)
        })
    }
}